<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <link rel="stylesheet" href="./../../helpwin.css">
      <title>MATLAB File Help: prtDataSetClass/classNamesToClassInd</title>
   </head>
   <body>
      <!--Single-page help-->
      <table border="0" cellspacing="0" width="100%">
         <tr class="subheader">
            <td class="headertitle">MATLAB File Help: prtDataSetClass/classNamesToClassInd</td>
            
            
         </tr>
      </table>
      <div class="title">prtDataSetClass/classNamesToClassInd</div>
      <div class="helptext"><pre><!--helptext -->  classInds = <span class="helptopic">classNamesToClassInd</span>(dataSet,classNames)
    Return the class indices corresponding to the classes
    specified in the character array or cell of strings,
    classNames.
 
    Note that the classInd is not necessarily the same as the
    target value.
 
   ds = prtDataGenIris;
   ds.<span class="helptopic">classNamesToClassInd</span>('Iris-setosa'); %Setosa is the first

Help for <span class="helptopic">prtDataSetClass/classNamesToClassInd</span> is inherited from superclass <a href="./../prtDataInterfaceCategoricalTargets.html">prtDataInterfaceCategoricalTargets</a></pre></div><!--after help -->
      <!--Method-->
      <div class="sectiontitle">Method Details</div>
      <table class="class-details">
         <tr>
            <td class="class-detail-label">Defining Class</td>
            <td>prtDataInterfaceCategoricalTargets</td>
         </tr>
         <tr>
            <td class="class-detail-label">Access</td>
            <td>public</td>
         </tr>
         <tr>
            <td class="class-detail-label">Sealed</td>
            <td>false</td>
         </tr>
         <tr>
            <td class="class-detail-label">Static</td>
            <td>false</td>
         </tr>
      </table>
   </body>
</html>